package com.cssw.fyzb.core.dao.video;

import com.cssw.fyzb.core.model.dodb.CmfVideoViewTime;
import org.springframework.stereotype.Repository;

import java.util.Date;

/**
 * @Author: YangYiQun
 * @Date: 2020/10/10 15:10
 */
@Repository
public class VideoViewTimeDaoImpl implements VideoViewTimeDao {

    @Override
    public void save(Long userId, String dayTime, Integer timeLong) {
        CmfVideoViewTime videoViewTime = new CmfVideoViewTime();
        videoViewTime.setUserId(userId);
        videoViewTime.setDayTime(dayTime);
        videoViewTime.setTimeLong(timeLong);
        videoViewTime.setCreateTime(new Date());
        videoViewTime.save();
    }
}
